<div class="activity active-preview">
    <div class="">
        <div class="bp-view-info">
            <div class="intro">
                <p>
                    <?=$activity['activity_intro'] ?>
                </p>
                <p>
                    <?=$activity['out_link'] ?>
                </p>

<!--                <p>
                    <?=$activity['activity_addtime'] ?>
                </p>-->
            </div>

            <div class="box-medal">
                <div class="medal medal-one" style="padding-right: 0.20rem">
                    <img src="/assets/frontend/img/share/icon-comment.png" alt="评论">
                    <span style="color: #bfa77c;"><?=$activity['comments'] ?></span>

                    <img src="/assets/frontend/img/share/icon-read.png" alt="阅读量">
                    <span style="color: #bfa77c;"><?=$activity['views'] ?></span>

                    <span class="pull-right" style="color: #bfa77c;"><?=$lastTime ?></span>
                </div>
            </div>
        </div>





        <?php if(!empty($comment)){?>
            <div class="readTitle">
                                               美人儿已阅......
            </div>
            <div class="haveRead">
                 <?php foreach ($covers as $cover):?>
                    <img src="<?=$cover['user_cover'] ?>">
                <?php endforeach;?>
            </div>


            <div class="service">
   <!--             <h1>服务项目</h1>-->
                <?php foreach ($comment as $com):?>

                    <div class="item line">
                        <div class="user-cover"><img src="<?=$com['user_cover'] ?>"></div>

                        <div class="info">
                            <div class="user-name">
                                <p>
                                    <?php if ($com['user_gender'] == 1):?>
                                    <img src="/assets/frontend/img/share/icon-man.png" alt="男">

                                    <?php elseif ($com['user_gender'] == 2): ?>
                                    <img src="/assets/frontend/img/share/icon-woman.png" alt="女">
                                    <?php else :?>
                                    未知
                                    <?php endif ?>

                                    <span><?=$com['user_nickname'] ?></span>
                                </p>
                                <div class="time">12月30日  10:13</div>
                            </div>


                        </div>
                        <div class="content"> <?=$com['comment_content'] ?></div>

                    </div>
                <?php endforeach;?>
            </div>
        <?php }?>
    </div>
</div>